﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _35_C_中base和this
{
    internal class Corgi : Dog
    {
        public Corgi() : base("Corgi", 2)
        {
            Console.WriteLine("Corgi的无参构造方法");
        }

        public Corgi(string name, int age) : this()
        {
            Console.WriteLine("Corgi的有参构造函数");
        }

        public override void Show()
        {
            base.Show();
            Console.WriteLine("Corgi的show方法");
            base.Run();
        }
    }
}
